package com.fwzc.giuseppe.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.fwzc.giuseppe.R;
import com.fwzc.giuseppe.base.BaseActivity;

public class AddAddress extends BaseActivity implements OnClickListener{
	private Context context = AddAddress.this;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.add_address);
		initBar();
		actionbar_side_name.setText("选择收货地址");
		bg_actionbar_side.setBackgroundColor(getResources().getColor(R.color.transparent));
		iv_actionbar_side_left.setVisibility(View.VISIBLE);
		iv_actionbar_side_left.setOnClickListener(this);
		tv_actionbar_side_right.setVisibility(View.VISIBLE);
		tv_actionbar_side_right.setText("完成");
		tv_actionbar_side_right.setOnClickListener(this);
		initView();
	}
	private void initView() {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		// 返回
		case R.id.iv_actionbar_side_left:
			finish();
			break;
		case R.id.tv_actionbar_side_right:
			startActivity(new Intent(context, SelectAddress.class));
			break;

		default:
			break;
		}
		
	}

}
